# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=mqtt2prometheus
pkgver=0.1.6
pkgrel=2
pkgdesc="MQTT to Prometheus gateway"
url="https://github.com/hikhvar/mqtt2prometheus"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/hikhvar/mqtt2prometheus/archive/v$pkgver/mqtt2prometheus-$pkgver.tar.gz"

build() {
	go build -o mqtt2prometheus ./cmd
}

check() {
	go test ./...
}

package() {
	install -Dm755 mqtt2prometheus -t "$pkgdir"/usr/bin
}

sha512sums="
2c33cc2e7f94a673e059b4ebfc66d44c9030acb5d9d1e0d8debe7df3d8629d5d88e6c205abc257e39fc18f4c335890becc11c53863845b145079a2bca7567c7f  mqtt2prometheus-0.1.6.tar.gz
"
